﻿using System.Collections.Generic;
using System.Linq;
using Journal.Common.Models;
using Journal.Common.Objects;
using Journal.Domain.Models;
using Journal.Front.Presentation.Models.StudentModels.Items;

namespace Journal.Front.Presentation.Models.StudentModels
{
    public class StudentSelectModel
    {
        public StudentSelectModel(IEnumerable<User> users, UrlModel urlModel, int groupId)
        {
            ModelItems = users.Select(x => new StudentSelectModelItem(x, urlModel, groupId)).ToList();
        }

        public IList<StudentSelectModelItem> ModelItems { get; set; }
    }
} 